<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"> 

    <h:head>         
        <title>CorretorWeb - Sistema de Transações Imobiliárias</title> 
        <link rel="stylesheet" href="media/css/grid.css" />
        <link rel="stylesheet" href="media/css/style.css" />
    </h:head>
    <h:body  class="home">
        <p:growl widgetVar="growl" showDetail="true" />  

        <div id="header">
            <a href="index.xhtml" class="logo"><span>Corretor Web</span></a>
            <div id="user-bar">
                <h:link outcome="inbox" title="#{managerCurrentUser.count()} mensagem(ns) não lida(s)"  >
                    <span class="count" >
                        <h:graphicImage value="/media/images/inbox.png" width="25" />
                        <p:outputLabel value="#{managerCurrentUser.count()}" styleClass="#{managerCurrentUser.hasNews ? 'countNumber' : 'countNumber invisible'}" /> </span>
                </h:link>
                <span class="borderUser" ><p:outputLabel value="#{managerCurrentUser.users.name}" /> </span>
                <span class="borderUser" >
                    <h:form>
                        <h:commandLink style="color:#FFF;"  action="#{managerCurrentUser.logout()}" immediate="true">     
                            <h:outputText  value="Sair"/>     
                        </h:commandLink>
                    </h:form>
                </span>
            </div>

        </div>
        <div id="content-wrapper">
            <div class="nav-container">
                <nav>
                    <ul  class="dropdown">
                        <li class="first current"><a href="index.xhtml">Início</a></li>
                        <li><a href="indexsale.xhtml">Venda</a></li>
                        <li><a href="indexenterprise.xhtml">Empreendimentos</a></li>
                        <li><a href="indexcorrector.xhtml">Corretor</a></li>
                        <li><a href="indexcustomer.xhtml">Cliente</a></li>
                        <li><a href="indexconstruction.xhtml">Construtora</a></li>
                        <li><a href="indexuser.xhtml">Administração</a></li>
                    </ul>
                    <div class="nav-left"></div>
                    <div class="nav-right"></div>
                    <div class="nav-above"></div>
                </nav>
            </div>
            <div id="content">

                <h:form prependId="false">
                </h:form>
                <ui:insert name="body">

                </ui:insert>


            </div><!--content-->
        </div><!--content-wrapper-->
        <div id="footer-wrapper">
            <div id="footer">
                <ul id="footer-nav">
                    <li>© 2013 CorretorWeb - Sistema de Transações Imobiliárias</li>
                    <li class="last"><a href="http://foxlinetech.com.br">Fox Line Technologies</a></li>
                </ul>
            </div>
        </div>
    </h:body>
</html>
